tests/libtest: add functions for ed25519 tests
authorDenis Pynkin <denis.pynkin@collabora.com>
Sun, 17 Nov 2019 17:02:13 +0000 (20:02 +0300)
committerDenis Pynkin <denis.pynkin@collabora.com>
Wed, 25 Mar 2020 12:23:54 +0000 (15:23 +0300)
commita9df634c474033b29640f57454d1b73fc5f1a070
treea62fb45c52d8221d8ce1b4cf97cee8b65b261f65
parent2fd94388b129724b1bc78fcd280a9680cb16ca01
tests/libtest: add functions for ed25519 tests

Add functions for keys generation to be used in signing-related tests:
- gen_ed25519_keys initializing variables ED25519PUBLIC, ED25519SEED and
  ED25519SECRET with appropriate base64-encoded keys
- gen_ed25519_random_public print a random base64 public key (used in
  tests with wrong keys)

Signed-off-by: Denis Pynkin <denis.pynkin@collabora.com>
tests/libtest.sh